//
//  CollectionViewCell2.m
//  Civacrm
//
//  Created by 王桂敏 on 2017/2/15.
//  Copyright © 2017年 王桂敏. All rights reserved.
//

#import "CollectionViewCell2.h"

@implementation CollectionViewCell2

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self initView];
    }
    return self;
}

- (void)initView{
    
    self.backgroundColor = WhiteColor;
    
    self.titleLabel = [UILabel labelWithTitle:nil frame:CGRectMake(0, 0, kScreenWidth / 4, h(76)) font:font(22) textColor:ColorWithHexString(@"a0c0d2") bgColor:ClearColor];
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.titleLabel];
    
}

- (void)configCellWithModel:(SubTabModel *)model{
    
    self.titleLabel.text = model.name;
    
}
- (void)layoutSubviews{
    [super layoutSubviews];

}

@end
